﻿namespace POSPlus.EZBarTender
{
    /// <summary>
    /// Data Structure that holds a key expression and a description.
    /// 
    /// Kind of like a <code>Dictionary</code>, maybe I could get rid of this one.
    /// </summary>
    public class PrintJobComponent
    {
        /// <summary>
        /// Wordy description of the object
        /// </summary>
        private string _description;
        /// <summary>
        /// Not too sure any more. Maybe I should look into getting rid of this
        /// class or finding out what it does again.
        /// </summary>
        private string _keyExpression;

        /// <summary>
        /// Assigns the values to _description and _keyExpression.
        /// </summary>
        /// <param name="keyExpression"></param>
        /// <param name="description"></param>
        public PrintJobComponent(string keyExpression, string description)
        {
            _description = description;            
            _keyExpression = keyExpression;
        }

        public string KeyExpression
        {
            get { return _keyExpression; }
            set { _keyExpression = value; }
        }

        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }
    }
}
